//
//  ChainSearchHistoryTagCell.h
//  Chain
//
//  Created by zhaosh on 2018/4/16.
//  Copyright © 2018年 zhaosh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JCTagListView.h"
#import "JCCollectionViewTagFlowLayout.h"

@interface ChainSearchHistoryTagCell : UITableViewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView;
+(CGFloat)getCellHeightWithItem:(NSMutableArray *)item aView:(JCTagListView*)tagListView layout:(JCCollectionViewTagFlowLayout*)layout;

@property (nonatomic, strong)  JCTagListView *tagListView;

@property(strong,nonatomic)NSArray *array;

@property (nonatomic, strong) UIColor *tagStrokeColor;// default: lightGrayColor
@property (nonatomic, strong) UIColor *tagTextColor;// default: darkGrayColor
@property (nonatomic, strong) UIColor *tagBackgroundColor;// default: clearColor
@property (nonatomic, strong) UIColor *tagSelectedBackgroundColor;// default: rgb(217,217,217)

@property (nonatomic, assign) CGFloat tagCornerRadius;// default: 10
@property (nonatomic, assign) BOOL canSelectTags;// default: NO
@property (nonatomic, assign) BOOL ifMulticSelected;
@property (nonatomic, assign) BOOL onlySelectedOne;

@property (nonatomic, strong) NSMutableArray *tags;
@property (nonatomic, strong, readonly) NSMutableArray *selectedTags;

@property(strong,nonatomic)NSArray *defaultSelectedTags;

@property (nonatomic, strong) UICollectionView *collectionView;
@end
